/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package calculator;

import calculator.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Observer;

/**
 *
 * @author Sigurd
 */
class CalculatorController implements ActionListener{

    private CalculatorModel model;
    
    public CalculatorController() {
        model = new CalculatorModel();
    }

    public void actionPerformed(ActionEvent e) {
        model.addToTest();
    }

        public void appendListener(Observer panel) {
        model.addObserver(panel);
    }
    
}
